package com.cmf.myproject.dal.mybatis.model;

import com.cmf.myproject.dal.mybatis.enums.TeamLeaveLeaveTypeEnum;
import java.io.Serializable;
import java.util.Date;

public class TeamLeave implements Serializable {
    /**
     * 
     * @mbggenerated
     */
    private Long id;

    /**
     * 开始时间
     * @mbggenerated
     */
    private Date startTime;

    /**
     * 截止时间
     * @mbggenerated
     */
    private Date endTime;

    /**
     * 请假人
     * @mbggenerated
     */
    private String userName;

    /**
     * 
     * @mbggenerated
     */
    private TeamLeaveLeaveTypeEnum leaveType;

    /**
     * 请假事由
     * @mbggenerated
     */
    private String reason;

    /**
     * 
     * @mbggenerated
     */
    private Date createTime;

    /**
     * 
     * @mbggenerated
     */
    private Date updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table team_leave
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     * @param id 
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 开始时间
     * @mbggenerated
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 开始时间
     * @param startTime 开始时间
     * @mbggenerated
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 截止时间
     * @mbggenerated
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 截止时间
     * @param endTime 截止时间
     * @mbggenerated
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 请假人
     * @mbggenerated
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 请假人
     * @param userName 请假人
     * @mbggenerated
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * 
     * @mbggenerated
     */
    public TeamLeaveLeaveTypeEnum getLeaveType() {
        return leaveType;
    }

    /**
     * 
     * @param leaveType 
     * @mbggenerated
     */
    public void setLeaveType(TeamLeaveLeaveTypeEnum leaveType) {
        this.leaveType = leaveType;
    }

    /**
     * 请假事由
     * @mbggenerated
     */
    public String getReason() {
        return reason;
    }

    /**
     * 请假事由
     * @param reason 请假事由
     * @mbggenerated
     */
    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     * @param createTime 
     * @mbggenerated
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     * @mbggenerated
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     * @param updateTime 
     * @mbggenerated
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table team_leave
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", userName=").append(userName);
        sb.append(", leaveType=").append(leaveType);
        sb.append(", reason=").append(reason);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}